package com.smart.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 优惠券信息表
 *
 * @date 2019-07-26 09:55:50
 */
@Data
public class CpInfoDO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//ID
	private Long cpId;
	//所属平台
	private Integer platId;
	//所属商户
	private Integer merchantId;
	//所属省
	private String provinceNum;
	//所属市
	private String cityNum;
	//派券加油站,实际是对应加油站门店
	private String oilStationId;
	//加油站卡券商品编码
	private String oilCpNum;
	//加油站卡券商品名称
	private String oilCpName;
	//券名称
	private String cpName;
	//券类型
	private Integer cpTypeId;
	//券搜索分类
	private Integer searchTypeId;
	//核销价值-券面价
	private BigDecimal payFee;
	//实际价值-商城售价
	private BigDecimal costFee;
	//提点价值
	private BigDecimal servFee;
	//可发券数量(初始库存,不可修改)
	private Integer cpNum;
	//已发券数量
	private Integer cpGeneNum;
	//有效期类型
	private Integer validType;
	//有效期数值
	private String validValue;
	//券简介
	private String cpContent;
	//券图片
	private Integer picId;
	//上架状态
	private Integer pubFlag;
	//发布时间
	@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
	private Date pubTime;
	//发布人
	private String pubBy;
	//审核时间
	@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
	private Date checkTime;
	//审核人
	private String checkBy;
	//审核备注
	private String checkInfo;
	//创建人
	private String createBy;
	//创建时间
	@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	//修改人
	private String updateBy;
	//修改时间
	@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	//备注
	private String remark;
	//乐观锁
	private Integer version;
	//过期配置
	private Integer expiredConf;
	//有效期开始时间
	@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
	private Date startValidData;
	//有效期结束时间
	@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
	private Date endValidData;
	//补贴金额
	private BigDecimal subsidyFee;
	//获取类型
	private String obtainType;
	//全拼首字母
	private String cpLetter;
	//首字母
	private String cpFirstLetter;

	private String[] cpDescribeDO;

	private String platName;

	private String merchantName;

	/**
	 * 名称和数量描述
	 */
	private String nameAndNum;
}
